package com.hlkj.pay.app.merchant.ext.impl.easypay.dto.access;
/*
 * Hlpay-Plus aggregate payment system.
 * Copyright (c) 2024-2025 Hlpay Team Copyright has the right of final interpretation.
 */

import java.io.IOException;
/**
 * 联接方式
 *
 * 是否自营商户
 *
 * 手续费计算方式 0 按笔 1按比例
 */
public enum ConMode {
	THE_0, THE_1;
	
	public String toValue() {
		switch (this) {
		case THE_0: return "0";
		case THE_1: return "1";
		}
		return null;
	}
	
	public static ConMode forValue(String value) throws IOException {
		if (value.equals("0")) return THE_0;
		if (value.equals("1")) return THE_1;
		throw new IOException("Cannot deserialize ConMode");
	}
}
